home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 5 / Amiga Plus Sonderheft 1996 #5.iso / sonstiges / superviewel / superviewlibrary / install_svlib < prev    next >
Text File  |  1986-04-04  |  7KB  |  256 lines

  1. ; $VER: Install_SVLib V12.10 (22.3.96)
  2. ; © 1993-96 by Andreas R. Kleinert.
  3. ; This is the Installer Script for superview.library V12+
  4.  
  5. (set MC68x (database "cpu"))
  6. (set @app-name "SuperView-Library")
  7.  
  8. (makedir "ENV:SuperView-Library")
  9. (makedir "ENVARC:SuperView-Library")
  10.  
  11. (set selectsvdriver (askchoice
  12.                       (prompt "What's your basic configuration ?")
  13.                       (help @askchoice-help)
  14.                       (choices "ECS, no GfxCard" "AGA" "AGA (CD-32)" "Picasso II" "RetinaZ2/Z3" "Merlin-II" "OpalVision" "CyberGraphics GfxCard" "EGS7 GfxCard" "Other GfxCard (ECS/AGA)" "(do not preset anything)")
  15.                       (default 1)
  16.                     )
  17. )
  18.  
  19. (if (= selectsvdriver 0) (set env_source "docs/SampleConfigs/env_ECS")           )
  20. (if (= selectsvdriver 1) (set env_source "docs/SampleConfigs/env_AGA")           )
  21. (if (= selectsvdriver 2) (set env_source "docs/SampleConfigs/env_AGA_CD32")      )
  22. (if (= selectsvdriver 3) (set env_source "docs/SampleConfigs/env_PicassoII")     )
  23. (if (= selectsvdriver 4) (set env_source "docs/SampleConfigs/env_Retina")        )
  24. (if (= selectsvdriver 5) (set env_source "docs/SampleConfigs/env_Merlin")        )
  25. (if (= selectsvdriver 6) (set env_source "docs/SampleConfigs/env_OpalVision")    )
  26. (if (= selectsvdriver 7) (set env_source "docs/SampleConfigs/env_CyberGraphics") )
  27. (if (= selectsvdriver 8) (set env_source "docs/SampleConfigs/env_EGS7")          )
  28. (if (= selectsvdriver 9) (set env_source "docs/SampleConfigs/env_GfxCards")      )
  29.  
  30. (if (<= selectsvdriver 9)
  31.   (
  32.     (copyfiles
  33.       (prompt "Copying selected configuration to ENV: ...")
  34.       (help @copyfiles-help)
  35.       (source env_source)
  36.       (dest "ENV:")
  37.       (all)
  38.     )
  39.     (copyfiles
  40.       (prompt "Copying basic GfxCard configuration to ENVARC: ...")
  41.       (help @copyfiles-help)
  42.       (source env_source)
  43.       (dest "ENVARC:")
  44.       (all)
  45.     )
  46.   )
  47. )
  48.  
  49. (copyfiles
  50.   (prompt "Installing CPInfo files to ENVARC: ...")
  51.   (help @copyfiles-help)
  52.   (source "env")
  53.   (dest "ENVARC:")
  54.   (all)
  55. )
  56.  
  57. (copylib
  58.   (prompt "Installing superview.library to LIBS: ...")
  59.   (help @copylib-help)
  60.   (source "libs/superview.library")
  61.   (set svlibdir
  62.               (askdir
  63.                      (prompt "Library Path")
  64.                      (help @askdir-help)
  65.                      (newpath)
  66.                      (default "LIBS:")
  67.               )
  68.   )
  69.   (dest svlibdir)
  70. )
  71.  
  72. (set @default-dest svlibdir)
  73.  
  74. (copylib
  75.   (prompt "Installing superviewsupport.library to LIBS: ...")
  76.   (help @copylib-help)
  77.   (source "libs/superviewsupport.library")
  78.   (dest svlibdir)
  79. )
  80.  
  81. (set lzwquest (askchoice
  82.                 (prompt (cat "\nIs LZW usage license-free by your countries' law ?\n\n"
  83.                              "Note:\n"
  84.                              "If not, LZW dependent routines will be\n"
  85.                              "deactivated now. If you select Yes\n"
  86.                              "nevertheless, you hereby agree to pay\n"
  87.                              "any possible license fees for commercial\n"
  88.                              "or other usage by yourself. If you do not\n"
  89.                              "agree with that, select >Abort Install<\n")
  90.                 )
  91.                 (help @askchoice-help)
  92.                 (choices "Yes (e.g. Germany)" "No (e.g. USA)")
  93.                 (default 0)
  94.               )
  95. )
  96.  
  97. (if (= lzwquest 0)
  98.   (
  99.    (textfile
  100.        (dest "ENV:SuperView-Library/LEGAL.controlpad")
  101.        (append "LZW=ENABLED\n")
  102.    )
  103.    (copyfiles
  104.        (source "ENV:SuperView-Library/LEGAL.controlpad")
  105.        (dest "ENVARC:SuperView-Library")
  106.    )
  107.   )
  108. )
  109.  
  110. (if (= lzwquest 1)
  111.   (
  112.    (textfile
  113.        (dest "ENV:SuperView-Library/LEGAL.controlpad")
  114.        (append "LZW=DISABLED\n")
  115.    )
  116.    (copyfiles
  117.        (source "ENV:SuperView-Library/LEGAL.controlpad")
  118.        (dest "ENVARC:SuperView-Library")
  119.    )
  120.   )
  121. )
  122.  
  123. (makedir "SYS:locale")
  124. (makedir "SYS:locale/catalogs")
  125.  
  126. (copyfiles
  127.   (prompt "Installing OS 2.1+ catalog files ...")
  128.   (help @copyfiles-help)
  129.   (source "locale/catalogs")
  130.   (set svcatdir
  131.               (askdir
  132.                      (prompt "Catalog Path")
  133.                      (help @askdir-help)
  134.                      (newpath)
  135.                      (default "SYS:locale/Catalogs")
  136.               )
  137.   )
  138.   (dest svcatdir)
  139.   (all)
  140. )
  141.  
  142. (set svobjectdir   (tackon svlibdir "svobjects"))
  143. (set svdriverdir   (tackon svlibdir "svdrivers"))
  144. (set svoperatordir (tackon svlibdir "svoperators"))
  145.  
  146. (makedir svobjectdir)
  147. (makedir svdriverdir)
  148. (makedir svoperatordir)
  149.  
  150. (copyfiles
  151.   (prompt "Installing svobjects to LIBS:svobjects ...")
  152.   (help @copyfiles-help)
  153.   (source "libs/svobjects")
  154.   (dest (tackon svlibdir "svobjects"))
  155.   (pattern "#?")
  156.   (confirm)
  157.   (files)
  158. )
  159.  
  160. (copyfiles
  161.   (prompt "Installing svdrivers to LIBS:svdrivers ...")
  162.   (help @copyfiles-help)
  163.   (source "libs/svdrivers")
  164.   (dest (tackon svlibdir "svdrivers"))
  165.   (pattern "#?")
  166.   (confirm)
  167.   (files)
  168. )
  169.  
  170. (copyfiles
  171.   (prompt "Installing svoperators to LIBS:svoperators ...")
  172.   (help @copyfiles-help)
  173.   (source "libs/svoperators")
  174.   (dest (tackon svlibdir "svoperators"))
  175.   (pattern "#?")
  176.   (confirm)
  177.   (files)
  178. )
  179.  
  180. (if (>= MC68x 68020)
  181.   (
  182.     (copyfiles
  183.       (prompt "Installing special 68020+ versions of some sv-libs");
  184.       (help @copyfiles-help)
  185.       (source "libs/68030")
  186.       (dest svlibdir)
  187.       (confirm)
  188.       (all)
  189.     )
  190.   )
  191. )
  192.  
  193. (startup "SuperView-Library"
  194.   (prompt "Now modifying your S:User-Startup for VMem-Support...")
  195.   (help @startup-help)
  196.   (set vmemdir
  197.               (askdir
  198.                      (prompt "Virtual Memory Path")
  199.                      (help @askdir-help)
  200.                      (newpath)
  201.                      (default "T:")
  202.               )
  203.   )
  204.  
  205.   (command "Assign VMEM: "vmemdir"\n")
  206. )
  207.  
  208. (copyfiles
  209.   (prompt "Copy SVPrefs to SYS:Prefs ?")
  210.   (help @copyfiles-help)
  211.   (source "Prefs")
  212.   (dest "SYS:Prefs")
  213.   (all)
  214.   (confirm)
  215. )
  216.  
  217. (set ask_ps (askbool (prompt "Install PackerSupport right now ?") (help @askbool-help) ) )
  218.  
  219. (if (= ask_ps TRUE)
  220.   (
  221.     (copyfiles
  222.       (prompt "Installing Unpack.svobject to LIBS:svobjects ...")
  223.       (help @copyfiles-help)
  224.       (source "PackerSupport/Unpack-SVObject/libs/svobjects")
  225.       (dest (tackon svlibdir "svobjects"))
  226.       (pattern "#?")
  227.       (files)
  228.     )
  229.   )
  230. )
  231.  
  232. (set ask_sq (askbool (prompt "Install SQ-Operators right now ?") (help @askbool-help) ) )
  233.  
  234. (if (= ask_sq TRUE)
  235.   (
  236.     (copyfiles
  237.       (prompt "Installing CPInfo files to ENVARC: ...")
  238.       (help @copyfiles-help)
  239.       (source "SQ-Operators/envarc")
  240.       (dest "ENVARC:")
  241.       (all)
  242.     )
  243.     (copyfiles
  244.       (prompt "Installing svoperators to LIBS:svoperators ...")
  245.       (help @copyfiles-help)
  246.       (source "SQ-Operators/libs/svoperators")
  247.       (dest (tackon svlibdir "svoperators"))
  248.       (pattern "#?")
  249.       (confirm)
  250.       (files)
  251.     )
  252.   )
  253. )
  254.  
  255. (exit "SuperView-Library has been installed now.\nIf this was an Update, you should\nreboot your computer now.")
  256.